﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotClientService.Models.Lg;


public class LgLaminateJudge
{
    /// <summary>
    /// 厚度-1的上限值
    /// </summary>
    public double Thickness1Max { get; set; } = 99.999;
    /// <summary>
    /// 厚度-1的下限值
    /// </summary>
    public double Thickness1Min { get; set; } = 99.999;
    /// <summary>
    /// 宽度-2的上限值
    /// </summary>
    public double Width2Max { get; set; } = 999.999;
    /// <summary>
    /// 宽度-2的下限值
    /// </summary>
    public double Width2Min { get; set; } = 999.999;
    /// <summary>
    /// 正极肩高-3的上限值
    /// </summary>
    public double PositiveShoulderHeight3Max { get; set; } = 999.999;
    /// <summary>
    /// 正极肩高-3的下限值
    /// </summary>
    public double PositiveShoulderHeight3Min { get; set; } = 999.999;
    /// <summary>
    /// 正极含极柱高-4的上限值
    /// </summary>
    public double PositivePoleColumnHeight4Max { get; set; } = 999.999;
    /// <summary>
    /// 正极含极柱高-4的下限值
    /// </summary>
    public double PositivePoleColumnHeight4Min { get; set; } = 999.999;
    /// <summary>
    /// 负极含极柱高-5的上限值
    /// </summary>
    public double NegativePoleColumnHeight5Max { get; set; } = 999.999;
    /// <summary>
    /// 负极含极柱高-5的下限值
    /// </summary>
    public double NegativePoleColumnHeight5Min { get; set; } = 999.999;
    /// <summary>
    /// 负极肩高-6的上限值
    /// </summary>
    public double NegativeShoulderHeight6Max { get; set; } = 999.999;
    /// <summary>
    /// 负极肩高-6的下限值
    /// </summary>
    public double NegativeShoulderHeight6Min { get; set; } = 999.999;
    /// <summary>
    /// 绝缘测试漏电流-8的上限值
    /// </summary>
    public double InsulationTestLeakageCurrent8Max { get; set; } = 99.999;
    /// <summary>
    /// 绝缘测试漏电流-8的下限值
    /// </summary>
    public double InsulationTestLeakageCurrent8Min { get; set; } = 99.999;
    /// <summary>
    /// 重量-11的上限值
    /// </summary>
    public double Weight11Max { get; set; } = 9999.99;
    /// <summary>
    /// 重量-11的下限值
    /// </summary>
    public double Weight11Min { get; set; } = 9999.99;

    public override string ToString()
    {
        return $"{Thickness1Max.ToString().PadLeft(6,'0')}" +
           $"{Thickness1Min.ToString().PadLeft(6,'0')}" +
           $"{Width2Max.ToString().PadLeft(7,'0')}" +
           $"{Width2Min.ToString().PadLeft(7, '0')}" +
           $"{PositiveShoulderHeight3Max.ToString().PadLeft(7,'0')}" +
           $"{PositiveShoulderHeight3Min.ToString().PadLeft(7, '0')}" +
           $"{PositivePoleColumnHeight4Max.ToString().PadLeft(7, '0')}" +
           $"{PositivePoleColumnHeight4Min.ToString().PadLeft(7, '0')}" +
           $"{NegativePoleColumnHeight5Max.ToString().PadLeft(7, '0')}" +
           $"{NegativePoleColumnHeight5Min.ToString().PadLeft(7, '0')}" +
           $"{NegativeShoulderHeight6Max.ToString().PadLeft(7, '0')}" +
           $"{NegativeShoulderHeight6Min.ToString().PadLeft(7, '0')}" +
           $"{InsulationTestLeakageCurrent8Max.ToString().PadLeft(6,'0')}" +
           $"{InsulationTestLeakageCurrent8Min.ToString().PadLeft(6, '0')}" +
           $"{Weight11Max.ToString().PadLeft(7,'0')}" +
           $"{Weight11Min.ToString().PadLeft(7, '0')}";
    }
}

